package com.petalsgroup.petals.service.animation;

import com.petalsgroup.petals.pojo.CommentsDO;
import com.petalsgroup.petals.pojo.CommentsVO;
import com.petalsgroup.petals.pojo.PageBean;

import java.sql.Timestamp;
import java.util.List;

public interface CommentService {
    List<CommentsDO> getAllComments(Integer aid);

    CommentsDO getMyComment(Integer aid, Integer uid);

    List<String> getComment(List<CommentsDO> commentsList);

    String getMyUserName(Integer uid);

    void addComment(int aid, int uid, String comment_content, Timestamp timestamp, Integer score);

    PageBean<CommentsVO> pageQuery(int aid, int currentPage, int num, int uid);

    PageBean<CommentsVO> pageTimeQuery(int aid, int currentPage, int num, Integer uid);

    PageBean<String> userNamePageQuery(int aid, int currentPage, int num, List<Integer> userIdList);

    boolean getLikeComment(Integer uid, Integer com_id);

    void removeLikeComment(Integer uid, Integer com_id);

    void addLikeComment(Integer uid, Integer com_id);
}
